package com.his.controller;

import com.his.pojo.MedicalTechnology;
import com.his.service.MedicalTechnologyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
public class MedicalTechnologyController {

    //注入service
    @Autowired
    private MedicalTechnologyService medicalTechnologyService;

    /*处理查询检查项列表请求*/
    @RequestMapping("/queryMedicalItem")
    public List<MedicalTechnology> queryMedicalItem(){
        return medicalTechnologyService.list();
    }
}
